import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './scss/index.scss'
import 'vant/lib/index.css'
import Vant from 'vant'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// import VueLazyloadNext from 'vue-lazyload-next'
import { Lazyload } from 'vant';
const pinia = createPinia()
// const loadimage = require('./assets/loading.gif')
// const errorimage = require('./assets/error.png')
createApp(App).use(router).use(Vant).use(pinia.use(piniaPluginPersistedstate)).use(Lazyload)
    // .use(
    //     VueLazyloadNext,
    //     {
    //         preLoad: 1.3,
    //         error: errorimage,
    //         loading: loadimage,
    //         attempt: 1
    //     }
    // )
    .mount('#app')
